<template>
  <div class="naviTop">
      <div>

      <slot name="left" class="search" >
         
      </slot>
      </div>
      <div class="content">
          {{title}}
      </div>
      <div>

      <slot class="login" name="right">
          
      </slot>
      </div>
  </div>
</template>

<script>
export default {
    name:'Navitop',
    props:{
        title:{
            type:String
        }
    }

}
</script>

<style lang="less" scoped>
.naviTop{
        color: #ffffff;
        font-size: 14px;
        line-height: 34.6px;
        padding: 0 10px;
        background-color: var(--themeColor);
        text-align: center;

    height: 34.6px;
    display: flex;
    justify-content: space-around;
    align-content: center;
    // background-color: red;
    // border-bottom: 1px solid #cccccc;
    justify-content: space-between;
    :nth-child(2){
        font-size: 20px;
        flex: 100%;
        // background-color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    :nth-last-child(1){
        flex: 1;
        width: 60px;
        text-align: center;
        white-space: nowrap;
        float: right;
    }

    .cc-sousuo:before{
        color: #ffffff;
        text-align: center;
        font-size: 21px;
        line-height: 36px;
    }
}

</style>